<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    document.write('<h1>JavaScript我来了！</h1>')
    alert('你好js')
    console.log('它~会魔法吧~')
    prompt('请输入')
  </script>
</body>

</html>